package Collection;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

/**
 * @author wuhan
 * @date 2019/9/29 15:32
 */
public class SetToArray {
    public static void main(String[] args) {
        ArrayList<String> al= new ArrayList<>();
        al.add("as");
        al.add("a33");
        al.add("a2");
//        String[] arr=al.toArray(new String[0]);
//        System.out.println(Arrays.toString(arr));
        for (String s : al) {
            System.out.println(s);
        }
        Collections.shuffle(al);
        for (String s : al) {
            System.out.println(s);
        }



    }
}
